import Vue from 'vue'
import App from './App.vue'
import store from '@/store'
import router from '@/router'
import Element from 'element-ui'
import './router/permission' // 全局路由拦截
import 'element-ui/lib/theme-chalk/index.css'
import './assets/fonts/index.less' // 字体图标
import 'normalize.css/normalize.css' // CSS 初始化
import '@/styles/index.scss' // 全局 css
import * as filters from '@/utils/filters.js'
import * as echarts from 'echarts'
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import imageResize  from 'quill-image-resize-module' // 调整大小组件。
import { ImageDrop } from 'quill-image-drop-module'; // 拖动加载图片组件。
Quill.register('modules/imageResize', imageResize );
Quill.register('modules/imageDrop', ImageDrop);
Vue.use(VueQuillEditor)
Vue.prototype.$echarts = echarts
// 注册全局过滤器
Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key])
})
// 自定义指令
import './utils/directive/index'
// element-ui
Vue.use(Element)

Vue.config.productionTip = false

new Vue({
  store,
  router,
  render: (h) => h(App)
}).$mount('#app')
